Stick insects look like sticks and so are saved from being eaten by birds. Leaf insects look like leaves. Many edible species of butterfly gain protection by resembling noxious or poisonous species. We use the word 'mimicry' for these cases, not because we think that the animals consciously imitate other things, but because natural selection has favoured those individuals whose bodies were mistaken for other things. To put it another way, ancestors of stick insects that did not resemble sticks did not leave descendants.